﻿using System;
using System.Collections.Generic;

namespace Chengheng.Entity.Models;

/// <summary>
/// 库存_盘点单
/// </summary>
public partial class StockInventoryorder
{
    public long Id { get; set; }

    /// <summary>
    /// 0 未审核 1 审核 
    /// </summary>
    public int? Audit { get; set; }

    /// <summary>
    /// 审核日期
    /// </summary>
    public DateOnly? AuditDate { get; set; }

    /// <summary>
    /// 盘点日期
    /// </summary>
    public DateOnly? Date { get; set; }

    /// <summary>
    /// 0 部分判断 1 全部盘点 
    /// </summary>
    public sbyte? InventoryType { get; set; }

    /// <summary>
    /// 门店
    /// </summary>
    public byte[]? Shop { get; set; }

    public long TenantId { get; set; }

    /// <summary>
    /// 盘点单号
    /// </summary>
    public string? TicketNumber { get; set; }

    /// <summary>
    /// 差异总数量
    /// </summary>
    public int? TotalQuantityDifference { get; set; }

    /// <summary>
    /// 盘点总数量
    /// </summary>
    public int? TotalQuantityInventory { get; set; }

    /// <summary>
    /// 库存的总数量
    /// </summary>
    public int? TotalQuantityStock { get; set; }

    /// <summary>
    /// 字典_仓库_id
    /// </summary>
    public long? CommodityDictWarehouseId { get; set; }

    public virtual CommodityDictWarehouse? CommodityDictWarehouse { get; set; }

    public virtual ICollection<StockInventoryorderItem> StockInventoryorderItems { get; set; } = new List<StockInventoryorderItem>();
}
